<?
//读取表格单条数据的所有项

//table:表格 
//number:数据的条数
 

function  select_one_line_all_items($table,$condition)
{
 

    if($condition)
    {
        $condition=" where $condition";
    }
    else
    {
        $condition="";
    }


$sqlstr="select * from ".$table.$condition;
$result = mysql_query($sqlstr);
$values = mysql_fetch_array($result); 
mysql_close($con);

return $values ;

}
?>